﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using XLAction.GlobalIPReqAction;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace XLAction.Controllers
{
    //[MyNoAuthentication]标记特性后不限流
    [ServiceFilter(typeof(SemaphoreActionFilter))]//并发特性
    [Route("api/[controller]")]
    [ApiController]
    public class TestController : ControllerBase
    {

        [HttpGet(Name = "Get")]
        public IActionResult Get()
        {
            return Ok("Success");
        }

    }
}
